package com.jt.pojo;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class BasePojo implements Serializable {

    private static final long serialVersionUID = -3121669440061630976L;

    @TableField(fill = FieldFill.INSERT) /* 新增操作时 添加数据 */
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE) /* 更新操作时 添加数据 */
    private Date updated;

}
